<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets">
<head><title>curso</title></head>
<body>

<h1> #{quilloBean.curso.nombre} </h1>
<br></br>
<h1> ALUMNOS</h1>

<ui:repeat var="alumno" value="#{quilloBean.curso.alumnos}">
#{alumno}
</ui:repeat>

<h:dataTable var = "alumno" value ="#{quilloBean.curso.alumnos}" border = "1" >
<h:column>
#{alumno.id}
</h:column>
<h:column>
#{alumno.nombre}
</h:column>
 </h:dataTable>


<h1> Examenes</h1>

<ui:repeat var="examen" value="#{quilloBean.curso.examenes}">
#{examen}
</ui:repeat>


<h:form>
<h:dataTable var = "examen" value ="#{quilloBean.curso.examenes}" border = "1" >
<h:column>
<h:inputText value = "#{examen.id}"> </h:inputText>

</h:column>
<h:column>
<h:inputText value = "#{examen.numero}"> </h:inputText>
</h:column>

<h:column>
<h:commandButton value = "graba" action = "#{quilloBean.grabar}"></h:commandButton>
</h:column>

 </h:dataTable>
</h:form>



</body>
</html>